<?php

namespace app\common\validate;

use think\Validate;

class AfterSales extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
    	'order_id' => 'require',
	    'order_item_id' => 'require',
	    'amount' => 'require',
	    'type' => 'require',
	    'reason' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    	'order_id.require' => '订单ID不能为空',
	    'order_item_id.require' => '订单详情ID不能为空',
	    'amount.require' => '退款金额不能为空',
	    'type.require' => '售后类型不能为空',
	    'reason.require' => '售后原因不能为空'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
